<script setup lang="ts">
defineProps<{
  tags: string[];
}>();
</script>

<template>
  <div class="article-tags">
    <span class="tag-icon">🏷️</span>
    <div class="tags-list">
      <span class="tag" v-for="tag in tags" :key="tag">
        {{ tag }}
      </span>
    </div>
  </div>
</template>

<style scoped lang="less">
// 标签样式
.article-tags {
  display: flex;
  align-items: center;
  margin-bottom: 24px;

  .tag-icon {
    margin-right: 12px;
    font-size: 1.2em;
  }

  .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    .tag {
      padding: 4px 12px;
      background-color: rgba(96, 165, 250, 0.1);
      color: #60a5fa;
      border-radius: 16px;
      font-size: 0.9em;
      transition: all 0.3s ease;
      cursor: pointer;

      &:hover {
        background-color: #60a5fa;
        color: white;
        transform: translateY(-1px);
      }
    }
  }
}
</style>
